package org.fengdi.order.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "store-service")
public interface StorageClient {
    @PostMapping("/api/storage")
    boolean decreaseStorage(@RequestParam("commodity_code") String commodityCode, @RequestParam("count")Integer count);
}
